package edu.kjxy.worker0322;

public class worker08 {

	public static void main(String[] args) {
		int[] array = {8, 1, 4, 2, 5, 6};
		
		for (int i = 0; i < array.length; i++) {
			int k = i;
			int n = array.length;
			while(n != 0) {
				System.out.print(array[k % array.length] + " ");
				n--;
				k++;
			}
			System.out.println();
		}
	}

}
